package com.fengxing.ams.pub.persistence;

import java.util.Collection;
import java.util.List;


public class SearchFilter {

	public enum Operator {
		NEQ, EQ, LIKE, GT, LT, GTE, LTE, BETWEEN, IN
	}

	public String fieldName;
	public Object value1;
	public Operator operator;
	public Object value2;
	public Object[] splits;

	public SearchFilter(String fieldName, Operator operator, Object value1, Object value2) {
		this.fieldName = fieldName;
		this.value1 = value1;
		this.value2 = value2;
		this.operator = operator;
	}
	
	public SearchFilter(String fieldName, Operator operator, Object[] splits) {
		this.fieldName = fieldName;
		this.operator = operator;
		this.splits = splits;
	}

}
